package org.wu.framework.easy.markdown.stereotype.markdown;

import org.wu.framework.easy.excel.endpoint.EasyExcelPoint;
import org.wu.framework.easy.excel.toolkit.DynamicEasyExcelPointContextHolder;
import org.wu.framework.easy.markdown.web.MarkDownResponseHandler;

import java.lang.annotation.*;

/**
 * description 导出注解
 *
 * @author Jia wei Wu
 * @date 2020/10/5 下午7:08
 *
 *
 * <p>
 * @EasyMd(fileName = "导出数据")
 * @GetMapping("/run/{size}") public List<UserLog> run(@PathVariable Integer size) {
 * return runService.run(size);
 * }
 * </p>
 * @see DynamicEasyExcelPointContextHolder#push(EasyExcelPoint)
 * @see EasyExcelPoint
 * @see class : EasyExcel object:EasyExcelPoint
 * @see MarkDownResponseHandler
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface EasyMarkDown {

    /**
     * 文件名
     *
     * @return String
     * <p>
     * to dynamic fileName
     * Class:EasyExcel  Object:fileName
     */
    String fileName() default "temp";


    /**
     * 文件后缀
     *
     * @return String
     */
    String suffix() default "xls";




}
